package cn.wizzer.app.sys.modules.models;

import cn.wizzer.framework.base.model.BaseModel;
import lombok.Data;
import org.nutz.dao.entity.annotation.*;
import org.nutz.dao.interceptor.annotation.PrevInsert;
import org.nutz.integration.json4excel.annotation.J4EIgnore;

/**
 * 客服配置账号
 */
@Data
@Table("cs_account")
public class SysCsAccount extends BaseModel {

    @Column
    @Name
    @Comment("ID")
    @J4EIgnore
    @ColDefine(type = ColType.VARCHAR, width = 32)
    @PrevInsert(uu32 = true)
    private String id;

    @Comment("平台类型(LINE,TELGRAM,WHATSAPP,Main)")
    @Column
    @ColDefine(type = ColType.VARCHAR, width = 10)
    private String type;

    @Comment("平台链接地址")
    @Column
    @ColDefine(type = ColType.VARCHAR, width = 128)
    private String uri;

    @Comment("禁用/启用")
    @Column
    @Default("0")
    @ColDefine(type = ColType.BOOLEAN)
    private Boolean status;

    @Comment("开始时间")
    @Column
    @ColDefine(type = ColType.INT, width = 2)
    private Integer startingTime;

    @Comment("结束时间")
    @Column
    @ColDefine(type = ColType.INT, width = 2)
    private Integer endTime;

}
